/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fgv.tcc.fgv.imovel.controlle;

import br.com.fgv.tcc.fgv.imovel.model.Situacao;
import br.com.fgv.tcc.fgv.imovel.service.Service;
import br.com.fgv.tcc.fgv.imovel.service.SituacaoService;
import java.io.Serializable;
import javax.ejb.EJB;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
import org.apache.log4j.LogManager;

/**
 *
 * @author diego
 */
@Named(value = "situacaoM")
@SessionScoped
public class SituacaoMBean extends AbstractCrudBean<Situacao> implements Serializable {

    @EJB
    private SituacaoService ejbFacade;


    public SituacaoMBean() {
        logger = LogManager.getLogger(Situacao.class.getName());
        selected = new Situacao();
    }

    @Override
    protected Service getServiceManager() {
        return ejbFacade;

    }

   
    

    public Situacao getSelected() {
        return selected;
    }

    public void setSelected(Situacao selected) {
        this.selected = selected;
    }

    @Override
    public  void novaInstancia() {
        selected = new Situacao();
    }

    

}
